package com.microservice.provider.feign;

import com.microservice.common.R;
import com.microservice.provider.dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * write something please~
 *
 * @author huangrz
 * @since 2021/9/9
 **/
@FeignClient(name = "microservice-provider")
@RequestMapping("/user")
public interface UserFeignClient {

    @GetMapping("/get/{id}")
    R<UserDTO> get(@PathVariable("id") Long id);

}
